﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

namespace WebSite.admin.product
{
    public partial class exportGenerateCard : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["exportFile"] != null)
            {
                DataTable dt = Session["exportFile"] as DataTable;
                Session["exportFile"] = null;
                string fileName = DateTime.Now.ToString("yyyyMMddhhmmss") + ".xls";//设置导出文件的名称
                Gift.Utile.ExcelHelper.ExportDataTableToExcel(dt, fileName, "文件列表");
               
            }
        }
    }
}